#pragma once

#include "lg.h"
#include "lg_canvas.h"
#include "lgogl_conf.h"


typedef struct {
	LGCanvas canvas;

	GLuint colorTex;
	GLuint depthTex;
	GLuint fbo;
	GLuint rbo;
}LGOGLCanvas;

LGOGL_API LGCanvasBackend*
lgoglCanvasBackend();

LGOGL_API void
lgoglBindCanvas(LGCanvas* canvas);

LGOGL_API GLuint
lgoglGetCanvasTexId(LGCanvas* canvas);